<template>
  <el-collapse-item  v-if="enable" :name="name">
     <template #title>
        <span style="padding-left:20px">
          审核者<el-icon class="header-icon"><info-filled /></el-icon>
        </span>
     </template>
        <UserTasks
          :element="element"
          :bpmnModeler="bpmnModeler"
        />
  </el-collapse-item>
</template>
<script>
import UserTasks from './parts/UserTasks.vue'
import { is } from 'jeeplus-bpmn/lib/util/ModelUtil'
export default {
  components: {
    UserTasks
  },
  computed: {
    enable () {
      if (this.element && is(this.element, 'flowable:Assignable')) {
        return true
      } else {
        return false
      }
    }
  },
  props: {
    element: {
      type: Object,
      default: undefined
    },
    bpmnModeler: {
      type: Object,
      default: undefined
    },
    name: ''
  }
}
</script>
